package com.lekang.le.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

/**
 * 创建订单请求DTO
 * 用于小程序端创建服务订单
 * 
 * @author lekang
 * @date 2025-10-26
 */
public class OrderCreateDTO {
    
    /** 老人ID（必填） */
    private Long elderlyId;
    
    /** 护理项目ID（必填） */
    private Long nursingItemId;
    
    /** 期望服务时间（必填，格式：yyyy-MM-dd HH:mm:ss） */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expectedServiceTime;
    
    /** 下单人ID（必填，当前登录用户的user_id） */
    private Long orderUserId;
    
    /** 备注（可选） */
    private String remark;

    public Long getElderlyId() {
        return elderlyId;
    }

    public void setElderlyId(Long elderlyId) {
        this.elderlyId = elderlyId;
    }

    public Long getNursingItemId() {
        return nursingItemId;
    }

    public void setNursingItemId(Long nursingItemId) {
        this.nursingItemId = nursingItemId;
    }

    public Date getExpectedServiceTime() {
        return expectedServiceTime;
    }

    public void setExpectedServiceTime(Date expectedServiceTime) {
        this.expectedServiceTime = expectedServiceTime;
    }

    public Long getOrderUserId() {
        return orderUserId;
    }

    public void setOrderUserId(Long orderUserId) {
        this.orderUserId = orderUserId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "OrderCreateDTO{" +
                "elderlyId=" + elderlyId +
                ", nursingItemId=" + nursingItemId +
                ", expectedServiceTime=" + expectedServiceTime +
                ", orderUserId=" + orderUserId +
                ", remark='" + remark + '\'' +
                '}';
    }
}

